cc=g++ #在makefile中可以定义变量

.PHONY:all
all:client server

client:udp_client.cc
	$(cc) -o $@ $^ -std=c++11
server:udp_server.cc
	$(cc) -o $@ $^ -std=c++11

.PHONY:clean
clean:
	rm -f client server
